#ifndef _IRQ_H
#define _IRQ_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/
struct irq {
	u8 hpd; /* communication between the 2 halves of irq handling */
};

int intrs_enable(struct pci_dev *dev);
void intrs_reset(struct pci_dev *dev);

irqreturn_t irq_thd(int irq, void *dev_id);
irqreturn_t irq(int irq, void *dev_id);
#endif /* _IRQ_H */
